package com.jumi.microservice.stock.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jumi.microservice.common.base.AbstractObject;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description 仓库商城库存分配实体
 * @ClassName StockCommodityApply
 * @Author Abel Yang
 * @Date 2020/8/29/029 17:43
 **/
@TableName(value = "stock_commodity_allocate", keepGlobalPrefix = true)
public class StockCommodityAllocateDO extends AbstractObject implements Serializable {

    private static final long serialVersionUID = 7617745164287653313L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "关联申请id")
    private Long applyId;

    @ApiModelProperty(value = "商城skuId")
    private Long skuId;

    @ApiModelProperty(value = "商城spuId")
    private Long spuId;

    @ApiModelProperty(value = "仓库的id")
    private Long warehouseId;

    @ApiModelProperty(value = "分配类型: 0-库存分配; 1-补货分配")
    private Byte allocateType;

    @ApiModelProperty(value = "商城库存实际分配量")
    private int realStockNum;

    @ApiModelProperty(value = "商城库存实际补货量")
    private int realReplenishmentNum;

    private String createBy;
    private Date createTime;
    private Date updateTime;
    private String updateBy;
    private Boolean isDel;

    @Override
    public String toString() {
        return "StockCommodityAllocateDO{" +
                "id=" + id +
                ", applyId=" + applyId +
                ", skuId=" + skuId +
                ", spuId=" + spuId +
                ", warehouseId=" + warehouseId +
                ", allocateType=" + allocateType +
                ", realStockNum=" + realStockNum +
                ", realReplenishmentNum=" + realReplenishmentNum +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", updateBy='" + updateBy + '\'' +
                ", isDel=" + isDel +
                '}';
    }
}
